//
//  PushCollectionViewCell.m
//  BGM
//
//  Created by liuqin on 2018/12/3.
//  Copyright © 2018 com.alirtc.demo. All rights reserved.
//

#import "PushCollectionViewCell.h"
#import "Common.h"
@implementation PushCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self !=nil) {

        self.iconBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, SCREENW/4, SCREENW/4)];
        self.iconBtn.backgroundColor = [UIColor whiteColor];
        [self.iconBtn addTarget:self action:@selector(clickbtn) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:self.iconBtn];
//
        self.iconTitle = [[UILabel alloc]initWithFrame:CGRectMake(0, SCREENW/4, SCREENW/4, 20)];
        self.iconTitle.textColor = bgmmainColor;
        self.iconTitle.textAlignment = NSTextAlignmentCenter;
        self.iconTitle.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.iconTitle];
        
        
    }
    return self;
}

- (void)clickbtn{
    [self.pushCellDelegate clickCell:self.dic];
    
}
@end
